package com.cs.pk.actions;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;

import com.cs.pk.form.BuildConfigurationForm;

public class BuildConfiguration implements IWorkbenchWindowActionDelegate {

    // private BuildConfigurationForm bcf = null;
    // private Composite composite = null;
    private IWorkbenchWindow window = null;

    public void dispose() {
	System.out.println("Disposing Build Configuration..");
    }

    public void init(IWorkbenchWindow window) {
	this.window = window;
    }

    public void run(IAction action) {
	LaunchConfigurationForm.launchForm(null, window.getShell(), action.getImageDescriptor().createImage());
    }

    public void selectionChanged(IAction action, ISelection selection) {

    }

}
